<?php 
//use_javascript('flot/jquery.flot.pie.js','last');
use_javascript('kpiday.js', 'last');

slot('PageTitle',"Daily KPI");
slot('Title',"Daily KPI");
        
?>

<div class="options">
    <a href="<?php echo url_for('@kpiday?range=day') ?>">Today</a>
    <a href="<?php echo url_for('@kpiday?range=month') ?>">Last Month</a>
    <a href="<?php echo url_for('@kpiday?range=year') ?>">Last Year</a>
</div>
<?php if ($start == $end) {?>
<div id="datepickerDiv" class="highVis" class="otpions">Change date: <input type="text" id="datepicker" /></div>
<?php }?>

<div id="loader">
    <img  src="/images/loader.gif"/>
    <br>Updating...
</div>

<div id="kpis">
    <?php include_partial("kpiday/list".$partial, array("kpidays"=>$kpidays,"start"=>$start,"end"=>$end))?>
</div>